using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace tutors_clus.Models.Mapping
{
    public class file_attachMap : EntityTypeConfiguration<file_attach>
    {
        public file_attachMap()
        {
            // Primary Key
            this.HasKey(t => t.id_att);

            // Properties
            this.Property(t => t.name)
                .HasMaxLength(200);

            this.Property(t => t.source)
                .HasMaxLength(500);

            // Table & Column Mappings
            this.ToTable("file_attach");
            this.Property(t => t.id_att).HasColumnName("id_att");
            this.Property(t => t.name).HasColumnName("name");
            this.Property(t => t.source).HasColumnName("source");
        }
    }
}
